import Koa from 'koa';
import cors from 'koa-cors';
import convert from 'koa-convert';
import bodyParser from 'koa-bodyparser';
import routes from './routes';

const app = new Koa();

app.use(convert(cors()));
app.use(bodyParser());

app.use(routes());

app.listen(3000, () => {
	console.log("http;//localhost:3000");
});
export default app;